package com.wwj.my_ummary.config.webSocket;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName api
 * @Author Ray
 * @Date 2021/3/31 15:09
 * @Description
 */
@RequestMapping("/api")
@Validated
@RestController
public class Controller {

//    @GetMapping("/ws/sendOne")
//    public void get(String message , String id) throws IOException {
//        OneToManyWebSocket.sendMessage("123");
//    }
//
//    @GetMapping("/ws/sendAll")
//    public void get(String message) throws IOException {
//        WebSocketServer.BroadCastInfo(message);
//    }
}